<?php

namespace App\Domain\Permissions\Models;
/**
 * 角色模型
 * 第二行
 * Class PermissionModel
 *
 * @package App\Models
 * @property int $id 权限ID
 * @property string $pid 父权限ID
 * @property int $lvl 级别
 * @property string $key 权限KEY
 * @property string $name 权限名称
 * @property string $guard_name 守卫名称
 * @property string $sub_path 权限对应的菜单路径
 * @property string $type 类型（1菜单权限、2按钮权限）
 * @property string $classis_name 权限分类名称
 * @property string $icon 权限分类图标
 * @property string $active_icon 权限分类图标选中
 * @property \Illuminate\Support\Carbon $create_time 创建时间
 * @property \Illuminate\Support\Carbon $modify_time 修改时间
 * @property-read \Illuminate\Database\Eloquent\Collection|\App\Domain\Permissions\Models\PermissionsModel[] $permissions
 * @property-read int|null $permissions_count
 * @property-read \Illuminate\Database\Eloquent\Collection|\App\Domain\Role\Models\RoleModel[] $roles
 * @property-read int|null $roles_count
 * @property-read \Illuminate\Database\Eloquent\Collection|\App\Domain\Account\Models\AccountModel[] $users
 * @property-read int|null $users_count
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Domain\Permissions\Models\PermissionsModel newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Domain\Permissions\Models\PermissionsModel newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\Spatie\Permission\Models\Permission permission($permissions)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Domain\Permissions\Models\PermissionsModel query()
 * @method static \Illuminate\Database\Eloquent\Builder|\Spatie\Permission\Models\Permission role($roles, $guard = null)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Domain\Permissions\Models\PermissionsModel whereActiveIcon($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Domain\Permissions\Models\PermissionsModel whereClassisName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Domain\Permissions\Models\PermissionsModel whereCreateTime($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Domain\Permissions\Models\PermissionsModel whereGuardName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Domain\Permissions\Models\PermissionsModel whereIcon($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Domain\Permissions\Models\PermissionsModel whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Domain\Permissions\Models\PermissionsModel whereKey($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Domain\Permissions\Models\PermissionsModel whereLvl($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Domain\Permissions\Models\PermissionsModel whereModifyTime($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Domain\Permissions\Models\PermissionsModel whereName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Domain\Permissions\Models\PermissionsModel wherePid($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Domain\Permissions\Models\PermissionsModel whereSubPath($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Domain\Permissions\Models\PermissionsModel whereType($value)
 * @mixin \Eloquent
 * @property string $label 权限KEY
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Domain\Permissions\Models\PermissionsModel whereLabel($value)
 */
class PermissionsModel extends \Spatie\Permission\Models\Permission
{
    protected $table = 'permissions';

    protected $guarded = [];

    const CREATED_AT = 'create_time';

    const UPDATED_AT = 'modify_time';
}
